
<?php
//This select statement sees if the user was granted access to view the secured area
if (isset($True))
{
        echo "<table border=\"0\" id=\"docs\" align=\"center\">";
        echo "<thead>";
        echo "<tr><th>";
        echo anchor($base . "/assets/ChapterMinutes.doc",  "Chapter Minutes");
        echo "</th></tr>";
        echo "</thead>";
        echo "<tbody>";
        echo "<tr>";
        ?> <td><img src="<?php echo $base . "/assets/images/ChapterMinutes.jpg"; ?> "alt="Fast Facts"/></td><?php
        echo "</tr>";
        echo "<tr><td align=\"center\">";
        echo anchor($base . "index.php/Chiphi/Brothers",  "Logout");
        echo "</td></tr>";
        echo "</tbody> </table>";
}
else
 {
    if (isset($False))
        {
        echo "<h1>INCORRECT CREDENTIALS</h1>";
    }
    //This form makes the user enter their credentials to access the secure area
        echo "<form method=\"post\" action=" ."\"" . $base . "index.php/Brothers/login\">";

        echo "<p><label for=\"username\">Username</label> <input type=\"text\" name=\"username\" id=\"username\" size=\"30\" /></p>";
        echo "<p><label for=\"pass_1\">Password </label> <input type=\"password\" name=\"password\" id=\"password\" size=\"30\" /></p>";
        echo "<p><input type=\"submit\" value=\"Login\" /><p>";

        echo "</form>";
   }